package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by handsome-Bob on 2017/6/20.
 *
 *  支付成功
 */
public class PaySuccessBean implements Parcelable {
    private String orderId;
    private float userColorfulMoney;
    private String userCouponCount;
    private String mergeNo;//

    public PaySuccessBean() {
    }

    public PaySuccessBean(String orderId, float userColorfulMoney, String userCouponCount, String mergeNo) {
        this.orderId = orderId;
        this.userColorfulMoney = userColorfulMoney;
        this.userCouponCount = userCouponCount;
        this.mergeNo = mergeNo;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public float getUserColorfulMoney() {
        return userColorfulMoney;
    }

    public void setUserColorfulMoney(float userColorfulMoney) {
        this.userColorfulMoney = userColorfulMoney;
    }

    public String getUserCouponCount() {
        return userCouponCount;
    }

    public void setUserCouponCount(String userCouponCount) {
        this.userCouponCount = userCouponCount;
    }

    public String getMergeNo() {
        return mergeNo;
    }

    public void setMergeNo(String mergeNo) {
        this.mergeNo = mergeNo;
    }

    @Override
    public String toString() {
        return "PaySuccessBean{" +
                "orderId='" + orderId + '\'' +
                ", userColorfulMoney=" + userColorfulMoney +
                ", userCouponCount='" + userCouponCount + '\'' +
                ", mergeNo='" + mergeNo + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.orderId);
        dest.writeFloat(this.userColorfulMoney);
        dest.writeString(this.userCouponCount);
        dest.writeString(this.mergeNo);
    }

    protected PaySuccessBean(Parcel in) {
        this.orderId = in.readString();
        this.userColorfulMoney = in.readFloat();
        this.userCouponCount = in.readString();
        this.mergeNo = in.readString();
    }

    public static final Creator<PaySuccessBean> CREATOR = new Creator<PaySuccessBean>() {
        @Override
        public PaySuccessBean createFromParcel(Parcel source) {
            return new PaySuccessBean(source);
        }

        @Override
        public PaySuccessBean[] newArray(int size) {
            return new PaySuccessBean[size];
        }
    };
}
